package cn.team.controller;

import cn.team.bean.User;
import cn.team.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Author: 官宝星
 * @Date: 2019/10/23 16:00
 * @Version 1.0
 * @描述：
 */
@Controller
@RequestMapping("/user")
public class UserController {
    @Autowired
    UserService userService;

    @RequestMapping("/test1")
    @ResponseBody
    public User test1(){
        User user = userService.fingUserById(13);
        return user;
    }
}
